usb:composite: clear the whole common buffer
authorJeroen Hofstee <[email protected]>
Mon, 9 Jun 2014 13:28:59 +0000 (15:28 +0200)
committerMarek Vasut <[email protected]>
Wed, 25 Jun 2014 20:42:07 +0000 (22:42 +0200)
commit933611f7bbeb1b29218dca74cf1acfa910006cef
treedc6be457d86024f3827a1076723cb884995c5a2d
parent198c5f998a1fbbdb5cfe6035f8c890ffb1526d8e
usb:composite: clear the whole common buffer

Since the struct fsg_common is calloced, reset it completely
with zero's when reused. While at it, make checkpatch happy.

cc: Lukasz Majewski <[email protected]>
cc: Piotr Wilczek <[email protected]>
cc: Kyungmin Park <[email protected]>
cc: Marek Vasut <[email protected]>
Signed-off-by: Jeroen Hofstee <[email protected]>
Acked-by: Marek Vasut <[email protected]>
Acked-by: Lukasz Majewski <[email protected]>
drivers/usb/gadget/f_mass_storage.c